<!--
 * @Descripttion: your project
 * @version: 1.0
 * @Author: huxin
 * @Date: 2023-11-01 18:16:38
 * @LastEditTime: 2023-11-01 18:56:13
-->
<template>
    <div class='music'>
        网易云音乐首页
        <div class="feature">
            <div class="feature-list">
                <div class="feature-item" v-for="item in featureList" :key="item.unique"
                    @click="featureItemClick(item.name)">
                    {{ item.name }}
                </div>
            </div>
        </div>
    </div>
</template>
<script setup lang="ts">

const featureList = [
    {
        unique: '每日推荐',
        name: '每日推荐',
        icon: ''
    },
    {
        unique: '歌单',
        name: '歌单',
        icon: ''
    },
    {
        unique: '排行榜',
        name: '排行榜',
        icon: ''
    },
    {
        unique: '收藏',
        name: '收藏',
        icon: ''
    },
    {
        unique: '直播',
        name: '直播',
        icon: ''
    }
]

// 功能列表item点击事件
const featureItemClick = (val: string) => {
    console.log('val', val);
}

</script>
<style scoped lang="less">
.music {
    width: 100%;
    height: 100%;

    .feature {
        width: 100%;
        height: 100px;
        border: 1px solid #000;

        .feature-list {
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;

            .feature-item {
                width: 20%;
                height: 100%;
                text-align: center;
                line-height: 100px;
                border-right: 1px #000 solid;
            }

            .feature-item:nth-last-child(1) {
                border-right: 0px;
            }
        }
    }
}
</style>